﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddressEditControl.ascx.cs"
    Inherits="WebApplication.Controls.Management.Company.AddressEditControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<telerik:RadScriptBlock runat="server" ID="scriptBlock">

    <script type="text/javascript">
                <!--
        alert('halinka');
        function isChildOf(parentId, element) {
            alert('halineczka');
        }
                    -->
    </script>

</telerik:RadScriptBlock>
<asp:Label ID="DistrictLabel" runat="server" Text="Strefa:"></asp:Label>
<asp:TextBox ID="DistrictTextBox" runat="server"></asp:TextBox><br />
<asp:Label ID="StreetLabel" runat="server" Text="Ulica:"></asp:Label>
<asp:TextBox ID="StreetTextBox" runat="server"></asp:TextBox><br />
<asp:Label ID="BuildingNumberLabel" runat="server" Text="Nr budynku:"></asp:Label>
<asp:TextBox ID="BuildingNumberTextBox" runat="server"></asp:TextBox><br />
<asp:Label ID="LocalNumberLabel" runat="server" Text="Nr lokalu:"></asp:Label>
<asp:TextBox ID="LocalNumberTextBox" runat="server"></asp:TextBox><br />
<asp:Button ID="SelectCityButton" runat="server" Text="Wybierz miasto" OnClientClick="return false;" /><br />
<asp:Label ID="CityIdLabel" runat="server" Text="Id miasta:"></asp:Label>
<asp:TextBox ID="CityIdTextBox" runat="server" Enabled="false"></asp:TextBox><br />
<asp:Label ID="CityNameLabel" runat="server" Text="Nazwa miasta:"></asp:Label>
<asp:TextBox ID="CityNameTextBox" runat="server" Enabled="false"></asp:TextBox><br />
<asp:Label ID="ProvinceNameLabel" runat="server" Text="Nazwa województwa:"></asp:Label>
<asp:TextBox ID="ProvinceNameTextBox" runat="server" Enabled="false"></asp:TextBox><br />
<asp:Button ID="btInsert" runat="server" Text="Dodaj" CommandName="PerformInsert" />
<asp:Button ID="btUpdate" runat="server" Text="Zapisz" CommandName="Update" />
<asp:Button ID="btCancel" runat="server" Text="Anuluj" CommandName="Cancel" />
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" InitialBehavior="None"
            Modal="True" NavigateUrl="~/Restricted/Modal/SelectCityPage.aspx" OnClientClose="isChildOf">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
